package com.yiwyn.springbean.controller;

import com.yiwyn.springbean.constant.BlogConstant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    private final BlogConstant blogConstant;

    public TestController(BlogConstant blogConstant) {
        this.blogConstant = blogConstant;
    }

    @GetMapping("/test")
    public String test() {
        return blogConstant.blogUrl;
    }
}
